# -*- coding: utf-8 -*-
import maya.cmds as cmds
def Check_isLook_Cam():
	CamShapeTmps = ['front' , 'persp' , 'side' , 'top']
	AllCamShapes = cmds.listCameras()
	er_CamAttrs = { "translateX" , "translateY" , "translateZ" , "rotateX" , "rotateY" , "rotateZ" }
	CamScales = ['scaleX' , 'scaleY' , 'scaleZ' ]
	ListCam = list ( set ( AllCamShapes ) ^ set ( CamShapeTmps ) )
	if len (ListCam ) == 1 :
		for er_CamAttr in er_CamAttrs :
			if not cmds.getAttr ( ListCam[0] + '.' + er_CamAttr , lock = 1) :
				cmds.setAttr ( ListCam[0] + '.' + er_CamAttr , lock = 1 )
		for CamScale in CamScales:
			if cmds.getAttr ( ListCam[0] + '.' + CamScale , lock = 1):
				cmds.setAttr ( ListCam[0] + '.' + CamScale , lock = 0)
				cmds.setAttr ( ListCam[0] + '.' + CamScale , 1 )
				cmds.setAttr ( ListCam[0] + '.' + CamScale , lock = 1)
			else:
				cmds.setAttr ( ListCam[0] + '.' + CamScale , 1 )
				cmds.setAttr ( ListCam[0] + '.' + CamScale , lock = 1)
		return("YES")
	else:
		return("NO")
